package com.gxy.learn.securityauth.common;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础model
 */
@Data
public class BaseModel implements Serializable {
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 是否删除 1 删除 0 未删除
     * delval 默认值
     * value 删除后的值
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date create_date;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;
}
